PdhCreateCounterPathList (VB)
The Visual
Basic PdhCreateCounterPathList function displays the performance counter
browsing dialog box, which lets the user select several performance counters.
Each selected counter path must then be read using the PdhGetCounterPathFromList
function.
PdhCreateCounterPathList(
ByVal DetailLevel as Long, |
|
ByVal CaptionString as String) |
|
as Long |
|
Parameters
DetailLevel
One of the
following values defined in PDHDEFS.TXT. The selected value indicates the types
of counters to be displayed in the dialog box:
Value |
Counters
Displayed |
PERF_DETAIL_NOVICE
|
Only
counters that the novice user is likely to understand. |
PERF_DETAIL_ADVANCED
|
Counters
that the advanced user is likely to understand, in addition to the
novice-user counters. |
PERF_DETAIL_EXPERT
|
Counters
that the expert user and software developer is likely to understand, in
addition to the counters for the novice and advanced users. |
PERF_DETAIL_WIZARD
|
All
counters in the system. |
CaptionString
A string
variable that contains the text that will be displayed in the caption bar of
the dialog box.
Return Values
The function
returns the number of counter paths that the user selected.